Skip to content

Refine pattern-matching.md #1330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2019
Merged

Refine pattern-matching.md #1330

merged 1 commit into from
May 26, 2019

Conversation

asakaev
Copy link
Contributor

@asakaev asakaev commented May 17, 2019

number is a better name than many here.

@dwijnand
Copy link
Member

I think the "many" is short for "more than 2? woah, that's too many to count".

Why do you prefer "number"?

@asakaev
Copy link
Contributor Author

asakaev commented May 19, 2019

I like "many" a lot. It's very clear, but zero and negative numbers do not match "many" definition.

@dwijnand
Copy link
Member

Ah, I see your point. Perhaps "other", then.

And maybe even mention the fact that the int returned by Random.nextInt(10) is known to be between 0 and 10, but that's not in the type?

@asakaev asakaev changed the title Update pattern-matching.md Refine pattern-matching.md May 19, 2019
@asakaev
Copy link
Contributor Author

asakaev commented May 19, 2019

Exactly what is needed!

@SethTisue SethTisue merged commit 86b8f66 into scala:master May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants